package main

import "fmt"

func main() {
	var year, month, day, sumday int
	fmt.Println("请输入年份")
	fmt.Scanf("%d", &year)
	fmt.Println("请输入月份")
	fmt.Scanf("%d", &month)
	fmt.Println("请输入日期")
	fmt.Scanf("%d", &day)
	months := []int{}
	if year % 4 == 0 && year % 400 != 0{
		months = []int{31,29,31,30,31,30,31,31,30,31,30,31}
	} else {
		months = []int{31,28,31,30,31,30,31,31,30,31,30,31}
	}
	for i := 0; i < month-1;i++{
		sumday += months[i]
	}
	fmt.Printf("%d", sumday+day)
}
